package tk.mybatis.simple.generator.mapper;

import org.apache.ibatis.annotations.CacheNamespaceRef;
import tk.mybatis.simple.generator.model.SysPrivilege;

import java.util.List;

@CacheNamespaceRef(SysPrivilegeMapper.class)
public interface SysPrivilegeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysPrivilege record);

    SysPrivilege selectByPrimaryKey(Long id);

    List<SysPrivilege> selectAll();

    int updateByPrimaryKey(SysPrivilege record);

    List<SysPrivilege> selectPrivilegeByRoleId(Long roleId);
}